const Router = require("koa-router")
const {BASE_URL}=require('../constants/public')
const articleRouter=new Router({prefix:`${BASE_URL}/article`})

const {
    create,
    update,
    managerList,
    clientList
}=require('../controller/aset.article.controller')
const {
    verifyIsEmpty,
    verifyAddA,
    verifyUpdateA,
    verifyGetManagerList,
    verifyGetClientList
} =require('../middleware/empty.midderware')
const {verifyLogin,verifyAuth} = require('../middleware/auth.midderware')

// articleCategoryRouter.post('/add',verifyAuth,verifyAddAC,verifyIsEmpty,create)

articleRouter.post('/add',verifyAuth,verifyAddA,verifyIsEmpty,create)
articleRouter.post('/update',verifyAuth,verifyUpdateA,verifyIsEmpty,update)
articleRouter.post('/manager/list',verifyAuth,verifyGetManagerList,verifyIsEmpty,managerList)
articleRouter.post('/client/list',verifyGetClientList,verifyIsEmpty,clientList)

module.exports=articleRouter